package com.javaear.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * @author aooer
 */
@TableName("user")
public final class UserModel {

    @TableId(type = IdType.AUTO)
    private Integer id; //主键id，自增
    private String name; //用户名
    private String password; //密码
    private String email; //email
    private String alias; //别名
    private String intro; //简介

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    /*@Override
    public void check() {
        Assert.notNull(name);
        Assert.notNull(password);
        Assert.notNull(email);
    }*/
}
